﻿using System.Web;
using System.Web.Optimization;

namespace DHQGHN.PM2
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/jquery-1.9.0.js",
                        "~/Scripts/jquery.unobtrusive-ajax.js"));

            //bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
            //            "~/Scripts/jquery.validate*"));

            // Use the development version of Modernizr to develop with and learn from. Then, when you're
            // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
            //bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
            //            "~/Scripts/modernizr-*"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js",
                      "~/Scripts/js-image-slider.js"
                      //"~/Scripts/respond.js"
                      ));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/base.css",
                      "~/Content/generic.css",
                      "~/Content/js-image-slider.css",
                      "~/Content/layout.css",
                      "~/Content/main.css",
                      "~/Content/style.css",
                      "~/Content/site.css",
                      "~/Content/sweetalert.css"));

            bundles.Add(new StyleBundle("~/Content/cssOnline").Include(
                      "~/Content/base.css",
                      "~/Content/generic.css",
                      "~/Content/js-image-slider.css",
                      "~/Content/layout.css",
                      "~/Content/main.css",
                      "~/Content/markdown.css",
                      "~/Content/menu.css",
                      "~/Content/Style_p.css",
                      "~/Content/style.css",
                      "~/Content/tool.css",
                      "~/Content/site.css"));
            bundles.Add(new StyleBundle("~/Content/cssBusiness").Include(
                      //"~/Content/new_style.css",
                      "~/Content/style.css",
                      "~/Content/style_Html.css",
                      "~/Content/style_Business.css", //style can sua ten tranh trung voi style online
                      "~/Content/StyleMasterPage.css",
                      "~/Content/Style_p.css"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
                      "~/Scripts/jquery-ui-1.10.0.js",
                      "~/Scripts/jquery.ui.timepicker.js",
                      "~/Scripts/Ascende.Common.js",
                      "~/Scripts/jquery.contextMenu.js",
                      "~/Scripts/jquery.blockUI.js"));

            bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                      "~/Scripts/jquery.validate*"));

            //gopro, 20150424: thu vien cho dieu tra dan so
            bundles.Add(new ScriptBundle("~/bundles/jsMap").Include(
                      "~/Scripts/jsMapArea.js"
                      ));

            bundles.Add(new StyleBundle("~/Content/cssMap").Include(
                      "~/Content/styleMap.css"));

            //Layout Online Form
            bundles.Add(new StyleBundle("~/Content/cssOnlineForm").Include(
                    "~/Content/reset.css",
                    "~/Content/form_login_online.css"));
            bundles.Add(new ScriptBundle("~/bundles/jsOnlineForm").Include(
                      "~/Scripts/jquery-1.10.2.min.js",
                      "~/Scripts/acs.js",
                      "~/Scripts/maxlength.js",
                      "~/Scripts/json2.js",
                      "~/Scripts/paradata.js"));

            //Layout include the modified navigation bar
            bundles.Add(new StyleBundle("~/Content/cssNavBar").Include(
                      "~/Content/bootstrap.min.css",                    
                      "~/Content/jquery-ui.css",                    
                      "~/Content/navbar_template.css",                      
                       "~/Content/new_style.css",
                      "~/Content/style_Html.css",
                      "~/Content/style_Business.css", //style can sua ten tranh trung voi style online
                      "~/Content/StyleMasterPage.css",
                       "~/Content/style.css",
                      //"~/Content/Dropdown.css",
                      "~/Content/Style_p.css"));
            bundles.Add(new ScriptBundle("~/bundles/jsNavBar").Include(
                      "~/Scripts/jquery.min.js",
                      "~/Scripts/bootstrap.min.js",
                      "~/Scripts/jquery-1.10.2.min.js",
                      "~/Scripts/jquery-ui-1.10.2.min.js",
                      "~/Scripts/ie-emulation-modes-warning.js",
                      "~/Scripts/ie10-viewport-bug-workaround.js"
                      //"~/Scripts/Dropdown.js"
                         ) );
        }
    }
}
